#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <aclconio.h>
#include <define.h>
#include <transact.h>
#include <tran.h>
#include <gds.h>
#include <sizes.h>
#include <\SOFTPAY\Ver30\source\include\sizes.h>
#include <\SOFTPAY\Ver30\HostSrc\citisrc\citiids.h>
#include <\SOFTPAY\Ver30\HostSrc\cpacsrc\cpacids.h>
#include <confio.h>

#include <\SOFTPAY\Ver30\source\include\SIG.h>

const char*SIGName = "SIG.dat";

static SIG_REC srSIGRec;

static int recordNum;
int	inLoadSIGRec (int inRecNumber)
{
	int inRet;

	inRet = inLoadConfRec(SIG_FILENAME, SIZE_SIG_REC, inRecNumber, (char *) &srSIGRec);

	recordNum = inRecNumber;
	return inRet;
}

void *pvdGetSIGRec(void)
{
	return &srSIGRec;

}

int	inSaveSIGRec (int inRecNumber)
{
	int inRet;

	inRet = inSaveConfRec(SIG_FILENAME, SIZE_SIG_REC, inRecNumber, (char *) &srSIGRec);

	return inRet;
}

int	inGetSIGRecNumber (void)
{
	return recordNum;
}

int	inUpdateSIGRec (void)
{
	int inRet;

	inRet = inSaveConfRec(SIG_FILENAME, SIZE_SIG_REC, recordNum, (char *) &srSIGRec);

	return inRet;
}

void	vdResetSIGRec (void)
{
	memset((void*)&srSIGRec, 0, REC_SIZEOF(srSIGRec));
}

long lnGetCash1(void)
{
	return srSIGRec.lnCash1;
}

void vdSetCash1(long lnCash1)
{
	srSIGRec.lnCash1 = lnCash1;
}

long lnGetCash2(void)
{
	return srSIGRec.lnCash2;
}

void vdSetCash2(long lnCash2)
{
	srSIGRec.lnCash2 = lnCash2;
}

long lnGetCash3(void)
{
	return srSIGRec.lnCash3;
}

void vdSetCash3(long lnCash3)
{
	srSIGRec.lnCash3 = lnCash3;
}

long lnGetCash4(void)
{
	return srSIGRec.lnCash4;
}

void vdSetCash4(long lnCash4)
{
	srSIGRec.lnCash4 = lnCash4;
}

short inGetRegInterset(void)
{
	return srSIGRec.inRegInterset;
}

void vdSetRegInterset(short inRegInterset)
{
	srSIGRec.inRegInterset = inRegInterset;
}

short inGetPromoInterset(void)
{
	return srSIGRec.inPromoInterset;
}

void vdSetPromoInterset(short inPromoInterset)
{
	srSIGRec.inPromoInterset = inPromoInterset;
}

VS_BOOL fGetEppSale(void)
{
	return srSIGRec.fEppSale;
}

void vdSetEppSale(VS_BOOL fEppSale)
{
	srSIGRec.fEppSale = fEppSale;
}

VS_BOOL fGetICash(void)
{
	return srSIGRec.fICash;
}

void vdSetICash(VS_BOOL fICash)
{
	srSIGRec.fICash = fICash;
}

VS_BOOL fGetSaleICash(void)
{
	return srSIGRec.fSaleICash;
}

void vdSetSaleICash(VS_BOOL fSaleICash)
{
	srSIGRec.fSaleICash = fSaleICash;
}

VS_BOOL fGetReg(void)
{
	return srSIGRec.fReg;
}

void vdSetReg(VS_BOOL fReg)
{
	srSIGRec.fReg = fReg;
}

VS_BOOL fGetPromo(void)
{
	return srSIGRec.fPromo;
}

void vdSetPromo(VS_BOOL fPromo)
{
	srSIGRec.fPromo = fPromo;
}

VS_BOOL fGetPrintEPPFooter(void)
{
	return srSIGRec.fPrintEPPFooter;
}

void vdSetPrintEPPFooter(VS_BOOL fPrintEPPFooter)
{
	srSIGRec.fPrintEPPFooter = fPrintEPPFooter;
}

VS_BOOL fGetSIGPADBIT7(void)
{
	return srSIGRec.fSIGPADBIT7;
}

void vdSetSIGPADBIT7(VS_BOOL fSIGPADBIT7)
{
	srSIGRec.fSIGPADBIT7 = fSIGPADBIT7;
}

VS_BOOL fGetSIGPADBIT8(void)
{
	return srSIGRec.fSIGPADBIT8;
}

void vdSetSIGPADBIT8(VS_BOOL fSIGPADBIT8)
{
	srSIGRec.fSIGPADBIT8 = fSIGPADBIT8;
}

VS_BOOL fGetSIGPADBIT9(void)
{
	return srSIGRec.fSIGPADBIT9;
}

void vdSetSIGPADBIT9(VS_BOOL fSIGPADBIT9)
{
	srSIGRec.fSIGPADBIT9 = fSIGPADBIT9;
}

VS_BOOL fGetSIGPADBIT10(void)
{
	return srSIGRec.fSIGPADBIT10;
}

void vdSetSIGPADBIT10(VS_BOOL fSIGPADBIT10)
{
	srSIGRec.fSIGPADBIT10 = fSIGPADBIT10;
}

VS_BOOL fGetSIGPADBIT11(void)
{
	return srSIGRec.fSIGPADBIT11;
}

void vdSetSIGPADBIT11(VS_BOOL fSIGPADBIT11)
{
	srSIGRec.fSIGPADBIT11 = fSIGPADBIT11;
}

VS_BOOL fGetSIGPADBIT12(void)
{
	return srSIGRec.fSIGPADBIT12;
}

void vdSetSIGPADBIT12(VS_BOOL fSIGPADBIT12)
{
	srSIGRec.fSIGPADBIT12 = fSIGPADBIT12;
}

VS_BOOL fGetSIGPADBIT13(void)
{
	return srSIGRec.fSIGPADBIT13;
}

void vdSetSIGPADBIT13(VS_BOOL fSIGPADBIT13)
{
	srSIGRec.fSIGPADBIT13 = fSIGPADBIT13;
}

VS_BOOL fGetSIGPADBIT14(void)
{
	return srSIGRec.fSIGPADBIT14;
}

void vdSetSIGPADBIT14(VS_BOOL fSIGPADBIT14)
{
	srSIGRec.fSIGPADBIT14 = fSIGPADBIT14;
}

VS_BOOL fGetSIGPADBIT15(void)
{
	return srSIGRec.fSIGPADBIT15;
}

void vdSetSIGPADBIT15(VS_BOOL fSIGPADBIT15)
{
	srSIGRec.fSIGPADBIT15 = fSIGPADBIT15;
}

VS_BOOL fGetSIGPADBIT16(void)
{
	return srSIGRec.fSIGPADBIT16;
}

void vdSetSIGPADBIT16(VS_BOOL fSIGPADBIT16)
{
	srSIGRec.fSIGPADBIT16 = fSIGPADBIT16;
}

